/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout/index.vue'

const systemRouter = [{
  path: '/system',
  component: Layout,
  redirect: '/system/page',
  name: 'system',
  meta: {
    title: '系统管理',
    icon: 'icon-operation-system',
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/system/user/index.vue'),
      name: 'user',
      meta: { title: '用户管理' , icon: 'icon-user-manage-1'}
    },
    {
      path: 'dept',
      component: () => import('@/views/system/dept/index.vue'),
      name: 'dept',
      meta: { title: '部门管理' , icon: 'icon-dept-manage'}
    },
    {
      path: 'role',
      component: () => import('@/views/system/role/index.vue'),
      name: 'role',
      meta: { title: '角色管理', icon: 'icon-roles-manage' }
    },
    {
      path: 'menu',
      component: () => import('@/views/system/menu/index.vue'),
      name: 'menu',
      meta: { title: '菜单管理',  icon: 'icon-menu-manage'}
    },
  ]
}]

export default systemRouter
